package com.luo.pojo.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Results {
    private Integer code;
    private String message;
    private Object data;
    public static Results success(Object data) {
        return new Results(200, "success", data);
    }

    public static Results success(){
        return new Results(200, "success", null);
    }

    public static Results error(String message) {
        return new Results(500, message, null);
    }

}
